﻿@model YHWE.Web.Models.documentType

@{
    ViewBag.Title = "Edit";
}

<h2>文档类型管理</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>编辑 文档类型</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            类型名
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.name)
            @Html.ValidationMessageFor(model => model.name)
        </div>

        <div class="editor-label">
            样式
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.value, new { style="width:600px; height:200px"}) {content},{datetime},{id},{title}
            @Html.ValidationMessageFor(model => model.value)
        </div>

        <div class="editor-label">
            类型说明
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.exp)
            @Html.ValidationMessageFor(model => model.exp)
        </div>

        <div class="editor-label">
            有效
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.able)
            @Html.ValidationMessageFor(model => model.able)
        </div>

        <div class="editor-label">
            排序字段
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.rank)
            @Html.ValidationMessageFor(model => model.rank)
        </div>

        <p>
            <input type="submit" value="保存" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("回列表", "Index")
</div>

